<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2008 Olivier Meunier and contributors
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) { return; }

$core->url->register('AgendaFeed','Agenda','Agenda/feed/(.+)$',array('urlAgenda','feed'));
$core->url->register('AgendaiCal','Agenda','Agenda/ical/(.+)$',array('urlAgenda','ical'));
$core->url->register('AgendaiCal','Agenda','Agenda/ical$',array('urlAgenda','ical'));
$core->url->register('AgendaEvent','Agenda','Agenda/([0-9/]+)$',array('urlAgenda','agendaPost'));
$core->url->register('Agenda','Agenda','Agenda$',array('urlAgenda','agendaAll'));
$core->url->register('Agenda2','Agenda','Agenda/$',array('urlAgenda','agendaAll'));
$core->url->register('AgendaAjax','Agenda','AgendaAjax/(.+)$',array('urlAgenda','agendaAjax'));
$core->url->register('AgendaAjax','Agenda','AgendaAjax/(.+)$',array('urlAgenda','agendaAjax'));


//$core->url->register('pagespreview','pagespreview','^pagespreview/(.+)$',array('urlPages','pagespreview'));

$core->setPostType('agenda','plugin.php?p=agendaPlugin&newpage=1&id=%d',$core->url->getBase('agenda').'/%s');

# We should put this as settings later
//$GLOBALS['page_url_format'] = '{t}';

/**
 * Gestion du format des dates (a coder avec des parametres du plugin)
 */
$GLOBALS['agenda_format_date_mois_suivant'] = 'F Y';
$GLOBALS['agenda_format_date_jour_suivant'] = 'l d F Y';
$GLOBALS['agenda_format_date_annee_suivant'] = "Y";

?>